import request from "@/utils/request.js"
//轮播图请求接口
export function apiGetBanner(data) {
	return request.request({
		url:'/banner',
		method:'GET',
		data
	})
}

//推荐歌单
export function apiGetRecommendSongs(data) {
	return request.request({
		url:'/personalized',
		method:'GET',
		data,
	})
}


//新碟新歌
export function apiGetTopAlbum(data){
	return request.request({
		url:'/album/newest',
		method:'GET',
		data,
	})
}

//推荐视频
export function apiGetRelatedVideo(data){
	return request.request({
		url:'/mv/first',
		method:'GET',
		data
	})
}

// 热搜版
export function apiGetSearchHot(data) {
	return request.request({
		url: '/search/hot/detail',
		method: 'GET',
		data
	})
}

// 搜索接口
export function apiGetSearchSuggest(data) {
	return request.request({
		url: '/search/suggest',
		method: 'GET',
		data
	})
}
//歌单详情
export function apiAlbumDetail(data) {
	return request.request({
		url: '/playlist/detail',
		method: 'GET',
		data
	})
}

//获取歌曲连接
export function apiGetSongUrl(data) {
	return request.request({
		url: '/song/url',
		method: 'GET',
		data
	})
}

// 获取歌曲详情
export function apiGetSongDetail(data) {
	return request.request({
		url: '/song/detail',
		method: 'GET',
		data
	})
}
